package com.haoshuang.zhouzhoubang.ui.adapter

import com.chad.library.adapter4.BaseQuickAdapter
import com.haoshuang.zhouzhoubang.R
import com.haoshuang.zhouzhoubang.databinding.ItemIamge2Binding
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter
import com.mufeng.libs.utils.view.load


/**
 * 订单模块中的订单列表适配器
 * */
class Image2Adapter(data: MutableList<String>) :
    BaseBindingQuickAdapter<String, ItemIamge2Binding>(data){

    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: String?) {
        val binding = ItemIamge2Binding.bind(holder.itemView)

        binding.apply {
            imageView.load(item, R.mipmap.default_image)


        }
    }

}